package common;

import org.apache.log4j.xml.DOMConfigurator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Log {
	public static Logger logInfo(){
		DOMConfigurator.configureAndWatch(System.getProperty("user.home")
				+ java.io.File.separator + "configlog.log4j.xml");
		Logger logger = LoggerFactory.getLogger("LogInfo");
		return logger;
	}
	
	public static Logger logErr(){
		DOMConfigurator.configureAndWatch(System.getProperty("user.home")
				+ java.io.File.separator + "configlog.log4j.xml");
		Logger logger = LoggerFactory.getLogger("LogError");
		return logger;
	}
}
